package be.bonamis.umpire.ui.server;

import be.bonamis.umpire.ui.shared.actions.GetLoginA;
import be.bonamis.umpire.ui.shared.actions.GetLoginR;
import be.credoc.common.gwt.actions.server.service.AbstractActionServiceServlet;

public class ActionServiceServlet extends AbstractActionServiceServlet {

	private static final long serialVersionUID = 1L;
	
	public ActionServiceServlet() {
		super();
		addHandler(this);
	}
	
	public GetLoginR handle(GetLoginA<GetLoginR> action) {
		return new GetLoginR("Hello, " + action.getLogin() +", " +action.getPassword() +", " +action.isLanguageFr() + " !");		
	}	
}
